package pojo;

import java.util.Date;

public class Passport {

    private int id;

    private  String nationality;

    private Date date;

    private int p_id;


    public Passport(int id, String nationality, Date date, int p_id) {
        this.id = id;
        this.nationality = nationality;
        this.date = date;
        this.p_id = p_id;
    }

    public Passport(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getP_id() {
        return p_id;
    }

    public void setP_id(int p_id) {
        this.p_id = p_id;
    }

    @Override
    public String toString() {
        return "Passport{" +
                "id=" + id +
                ", nationality='" + nationality + '\'' +
                ", date=" + date +
                ", p_id=" + p_id +
                '}';
    }
}
